/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: 焦质晔
 * @Last Modified time: 2019-11-30 15:49:43
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 未办理会员卡信息
export const getCardNotHandle = params => axios.get(`${SERVER.MEMBERS_CLUB}/management/handleService/getCardNotHandle`, {
  params
});

// 保存会员卡信息
export const saveCardHandle = params => axios.post(`${SERVER.MEMBERS_CLUB}/management/handleService/saveCardHandle`, params);

// 盘点单号列表
export const getListInventoryNo = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftInventory/getListInventoryNo`, {
  params
});

// 分页查询列表盘点
export const searchByPagePanDian = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftInventory/getListPandian`, params);

// 分页查询列表盘点
export const searchByPageReal = params => axios.get(`${SERVER.MEMBERS_CLUB}/giftInventory/searchByPageReal`, {
  params
});

// 盘点保存
export const savePanDian = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftInventory/savePanDian`, params);

// 提交批复
export const submitApproval = params => axios.post(`${SERVER.MEMBERS_CLUB}/giftInventory/submitApproval`, params);

// 参数查询
export const doSearch = params => axios.post(`${SERVER.SYSMANAGE}/params/doSearch`, params);

// 补打清单
export const getPrintList = inventoryNo => axios.get(`${SERVER.MEMBERS_CLUB}/giftInventory/getPrintList?inventoryNo=${inventoryNo}`);
